Skip to content

PriorityQueue class

Defined in

Namespace: ReactiveUI.Primitives.Core Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Core.PriorityQueue<T> Modifiers: public sealed

Summary

View source

Binary heap priority queue that preserves insertion order for equal-priority items.

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Constructors

NameSummary
.ctorInitializes a new instance of the [PriorityQueue](# class.

Properties

NameSummary
CountGets the number of queued items.

Methods

NameSummary
DequeueRemoves and returns the highest-priority item.
DequeueSomeRemoves up to count queued items in priority order.
DequeueAllRemoves and returns all queued items in priority order.
DequeueRangeDequeues items into a caller-provided buffer.
EnqueueAdds an item to the queue.
EnqueueRangeAdds multiple items to the queue.
PeekReturns the highest-priority item without removing it.
TryPeekAttempts to return the highest-priority item without removing it.
TryDequeueAttempts to remove and return the highest-priority item.
RemoveRemoves a matching item from the queue.
VerifyHeapPropertyVerifies that the internal heap property is currently valid.
Inherited members